Fixed ConcurrentModification bug.