fix off-by-one in splits