Fixes bug with detecting portions of page to scrape