Fix chunk caching