Fix rounding errors.