fix rounding problem