fix caching script