Fix bug when cleaning the cache of specific packages.