Fix the ir segment enumeration.