Fix problem with removing objects from array we are iterating through.
Merge pull request #1 from AgencyAgency/master

Fix problem with removing objects from array we are iterating through.