Removing extraneous closing  tag