Fixed HTML output errors