fix split_trajectory_by_gripper