fix bad unique index