fixed a bug that was causing items to be dropped off the end of split
method