fix bug of cache