critical bug fix in constraint