bug fix (trajectory)