fixed last capital tagName issues