Fixed invalid constraints.