Fixed usage of previousConstraint.