Fixed compilation error in Templater