Fixing gender comparison to use == instead of =