Fix that the progress dialog can be closed on click to the background