fixed bug on win32 platform