Reset the loop counters before every render.