Don't use the regular loop index inside the closure.