updated template directory error