fix extraction of gender information