1. fix a bug when retrieve the gender