fix misclosed tags