I guess this is no longer an issue when removing the list of views, but if you need the index in the for loop, then you should really use the indexed for loop instead of the for each loop.