Fixed bug with next page link