fix links for next/prev