Fixed bug in which the sex column was not being found correctly.