Fixing a closing tag in tools generate