fix split&count boundaries