Remove redundant closing tags