fix error on inertia when setting H_inertia_segment