fixed last commit for cleaning garbage catalogs