+ fix constraint creation bug