Fix broken rounding mode handling.