Fix iterator in repeated fields