Fixed double variable declaration in for iterator.