use correct tagname for closing tag