indexOfValue: align the template onto the mission text (fix #320)