fix windows discovery