bugfix for template inception