Fixing rounding error