fixed no records data bug when there is data