Fixed the DistanceConstraint parameters.