Try to fix templates.sh