Fix previous_page, next_page problem