fixed js error bug when no result