Fix for crash when cache file is deleted