Fix rounding behavior