fix bug #10: Progress dialog not able to be canceled