parser: fix $root bug for cheerio