fix minor unique_constr bug