Fixed a constraint in the models.