fixed rounding problems.