fixed a bug in my recent gender setting code

minor bug in profile setting for gender