fix multiple constraints