Fix unclosed tags