fix(dialog): fixed undefined error