fixed change tagName bug