fix bugs with extracting trajectory using ExtractOpenRAVETrajectoryFromProfiles