template folder fix