fix bug when less than full page of results to show