fix external-format problem