How about randomizing the sex if it's null?