fix delete progress dialog can be canceled