fix windows check