Fixed bug with First page and last page. Only one appears with the correct link. The other pages appear with the default link