fix cache file does not exist condition