fix gender generating undefined string context due to Nil changes