fix for template config