fix - error in population creation function