bug fix for template file name