fix prev/next links