Fixed the cursor problem for json scraper.