Fix bug in split position handling