fixed anti rounding error