fixed rounding problem