attempt to fix rounding problem