Fixing issue with phenotype simulation