Fixed rounding errors