Fixed bug in winit