Fix ConcurrentModificationException.