Fix up metadata attributes.