fixed windows event handlers