Fixed bug when dealing with each value of a constraint