remove last page in pagination since it can be a problem on the cluster