Fix java.util.ConcurrentModificationException.