Fix misplaced constraints