PCG Spline Path Object Point to Z direction ?

Hi, im trying to make a fence by using PCG with Spline Path, but when i’m move the curve point to the Z direction, its start to look like this,

How can i make these mesh always point to the Z direction

I’m using the basic Spline template PCG