fixed crawl mongodb fn