fix BaseDialog #21