Little magic
Fixed freeze of ProgressDialogs