remove extra closing tag