Correct the trajectory