Fix pagination to prev/next