fix prev/next link order