woops. A die() left in the code. 
Also apparently, empty pages just happen!! The page numbering system from the scraped site is broken.