fixed a bug progressdialog crash