fix wrong unique flag cause additional comma added