Fixed crash on Win32