Fix new event manager for windows.