fix bug of getDataById