Bug fixed in trajectory_generator that produced zero in some denominators