traj bug fixed