fixing unclosed tags