fix errors parsing deltemplate and delcall