Fix faulty generated html.