add missing string substitution in main template