Fix the file templating