fix: check number of pages before calling hintPage

otherwise, we will reach out page limit when reached last page