Fixing ConcurrentModificationException when deleting valueTables