The slabshape.addpoint node is not working properly

I used polycurves to create a flat floor and a sloped polycurve.

The node at the top is the point extracted from the sloped polycurve, but when I apply it to a slabshape, the floor shape appears strange.

Is there a way to resolve this by ensuring a consistent slope?

I will upload the file if necessary.