fix bug for win32