fixed some undefined parameter errors in template deployment