remove tiny bug from new DOM api.