fix glitch with iteration of populations