CenterLine.vtk file is not aligned properly 3D view in slicer4.13

I have generated VTK file using slicer 4.13 version.

The VTK file looks like below.
image

If i try to display above file in 3D view means. It wont align using both LPS and RAS option.
It will be like below in slicer view.

If i change the vtk file like below. (Removed - SPACE=LPS) (second line of vtk file).
image

If i try to display the above modified file in slicer using LPS option. Its properly aligning like below.

image

May i know where we can modified these vtk files using code so that it will properly align?

Any suggestion how can i fix this problem?

Is the input segmentation or model under a transform?

If you create the centerline using SlicerVMTK extension’s Extract centerline module does the centerline appear at correct position? If you save the scene and reload the scene (.mrml or .mrb file) then does the centerline appear in the correct position? If you save the centerline and the surface model and then load the files do they appear in the same position?