fixing the win feature detection