Variables cannot be added twice anymore.

Fixed missing constraint.problem = self in _add_constraint
Fixed missing constraint.problem = self in _add_constraint