fixed scraping bug