fix prev/next page links, thanks @aravindavk!