I have had this problem before, simply fixed by making this command /did -f $dname dialogname id for example in my case
it was like this

on init blah blah: { did -f $dname cpanel 34 | other init commands }

I don't know if this is what you needed but blah, we can't win them all.. :tongue: