fix crash when the cache lost