fixes templating things