fixing UI freeze on win32