try to fix win32 crash