rounding bug fixes