Fix previous and next page links