Fix to constraints with elems expression