fixed nil error in scraper