fix infinite loop in paging by clearing Next/Previous fields from previous query
Merge pull request #15 from kjk/fix-paging-2

fix infinite loop in paging by clearing Next/Previous fields from previous query