Fix a bug that not passing proper document to scraper