fixed Trajectory.py redundant check