Fix bug for XPathEngine
finish the crawler, still need testing