Fix some floating point issues.