fix for template