correction to last page of pagination