fix for template targets