Fixed rounding problem