fix major templating issue in heading template