Fixing bugs in phenotype import script