Fixing a concurrent modification error.
Merge pull request #410 from Glitchfinder/master

Fixing a concurrent modification error.