fix gender index issue