fixed null exception bug (when there are no results to show)