fixed bugs with the scraper