Fix numerical issue on Win32