Fix bug in constraint deps tracking.