stable: fix constraints bug