fix a bug. now it works with new DOM.