Fix bug in constraint constructor