fix($dialog): fix error "$dialog has no method alert"