Fixed possible cache file deletion