Fix constructor of constraint