fix bug when get data by key