fix for number of weak constraints