Fixed a problem with imposeConstraints