CAAERS-6938 fix failed replacement message indices