Fixed a bug regarding the cache file