Fixed the problem of Curve implementing Layout.