stop paging

the changes in #47 caused an infinite loop of fetching empty pages once you get to the end.