fix bug when get data from cache