Make offset 0 if the page is less than 1.