Fix rounding problems.