fix looping till finding page with 20+ links

now it stops once it has 20+ links in total, instead of finding a page
with 20+ on one page.