check ID duplication when loading.refine gain edit mode.