Fix to generates output as an html file