fixed exit scraping query