integrated addConstraints bug fix