fix rounding error in spliting