fixed forgetting of unique indexes