add error report for unclosed tag