Update gender.lua

fixed and then rewriten by krock