Fix for clearing the cache