fix core when deleting collection
that is not swapped out.