Fixed bug when deleting all collections