fix unique index