fix dialog plugin bug