Texture mapping goes wrong when corridor height is not set

I drew 2 roads with different corridor attributes(with or without height attribute).
The right one( with height) looks fine, while the texture mapping of the left one doesn’t look right.

    var redCorridor = viewer.entities.add({
      name: "Red corridor on surface with rounded corners",
      corridor: {
    positions: Cesium.Cartesian3.fromDegreesArray([
      -100.0,
      40.0,
      -105.0,
      40.0,
      -105.0,
      35.0,
    ]),
    width: 200000.0,
    material: new Cesium.ImageMaterialProperty({
      image: 'http://localhost:8080/road.jpg'
    }),
      },
    });

    var greenCorridor = viewer.entities.add({
      name: "Green corridor at height with mitered corners and outline",
      corridor: {
    positions: Cesium.Cartesian3.fromDegreesArray([
      -90.0,
      40.0,
      -95.0,
      40.0,
      -95.0,
      35.0,
    ]),
    height: 100000.0,
    width: 200000.0,
    material: new Cesium.ImageMaterialProperty({
      image: 'http://localhost:8080/road.jpg'
    }),
      },
    });


I want the road to classify terrain, but setting the height attribute ruins it. While setting the height somehow destroys the uv mapping.
Did I do something wrong?
road texture