fix missing case of ProgressDialog.dismiss()