lib/transformer/dom.js:deal with bug