Fixed the obvious ConcurrentModificationException.