I tried your script but as you can see from the images below basically the blue line stays in position.