Fixed type is None mistake in metadata_html.