fix initPopulation error