Fix win check