bug fixed for win32