Changed PHENOTYPE_NA from double.max to double.nan