Fix some rounding issues.