Fix an issue with constraints.