Fix collection uniqueness constraint