fixed template.sh cariables