fixed gender selection bug