fixed one bug for PartialConstraints.