fixed deply script deploying deploy template