Rename a template file.
Fix codes to specify template file names.