fix for prev/next links