fix hasPair constraints
Reviewer: Dan Villafuerte (post-commit)