bufixes on trajectory_recorder