Remove excess closing tag