Fix win32 issue still need a better way to solve this