Fix including of templates.