Fix scope in HTML output.