Revert "Fixed the splitting algorithm"

This reverts commit dfa4fc141d1e6f0f8d88e4546cb06209a1410e56.