Fix cache_delta bug