fix splitting behaviour with splitright

This should fix the issue #7 that I openend yesterday.