fixing unique index