fixed bug in scraper