fix for progressdialog