fix template filenames