gender check fix