fixed template.bat