fix self-closing tag which previously prints closing tag