Contour Contuity shift

Hello everyone,
Can anyone help me out with this problem I have in the image provided? The gap in the contour curves are fine except for the one on top. For some reason it shifts to the right. I would like all the gaps to to be in the same. Does someone know why this happens and how I can fix it? Thanks very much for the help!

set the C input, (Closed), of your polyline component to True?
EDIT: Sorry, misread the question. you will need to align the start and end of your curves. (Sort along curve may get you there).

Thanks Chris,

That’s not how I wanted to achieve the solution. But I fixed it by adding 0.0001 to distance of my contour. I have no idea why it worked.