creating template bug fix