Modified the enrich-format module to set missing type field from format field.