Changing back to for instead of foreach because list is modifed inside loop
Merge pull request #28 from DavidKarlas/exceptionNotDisplaying

Changing back to for instead of foreach because list is modifed inside loop