fix dialog inheritance