Fix 32-bit accuracy problem