fn fix_phase_to_stage(value: &mut Value)