Fixed bug which caused females to not be generated