fixes in ExtractOpenRAVETrajectoryFromProfiles