2 bug fixes to getRequiredConstraints