Loop iterators were set too early and never returned to 0