Fix regarding a empty cache.