fix the remaining problem of cache.py