fix win check