Fix constrain in v1.