Fixed a ConcurrentModificationException.