fix bug in ExtractOpenRAVETrajectoryFromProfiles