Fixed undefined error when no results.