fix the bug when no data found