Fixed NPE in crawl mode