Fixed issue when deleting cache