fixed unmatched end tags