fixed gender parsing