fix constraints