Fixed the HTML generator