detect unclosed tags