fix an error whereby the next page of the pagination array was not shown.