bugfix for win32