Fix win loop