fix exception when cache file is empty