fixing prev/next