Change the start and end station after split corridor solids

Hi everyone,

I tried to change station information after split the corridor solids. I found a dynamo code from “Change start and end station value on splited corridor solids” and I really tried to work it so much. Now, it is working but wrong way. On this photo, the solid start station is 37700, end station is 37750 normally, but dynamo shows 37800-37850. I tried some nodes and normally my station range is 35700-35900 m, but it is not show stations right. I really tried so much but I am stuck now.