Removed duplicated closing tag in the last output file