fix rounding logic, heh