Fixed JS bug regarding gender setting.