Avoid a jump when replanning the path.