fix the collection "delete all" bug