fix bug of cache agent