Fixed some constraints.