fix prev/next buttons