fixed some bugs with scraper