fix to population::generate()