Fixed closing tag generation