changing unique constraint for #5704

fixing copy and paste error