fixed bug in constraints