Fixed document ids scraping