Fix iterator type.

See code.