correct unclosed tags