set current page to 1 if it is over the limit