fix createDialog bug

fix createDialog bug