make set current page number valid