Corrected bugs in winit