fixed progress dialog crash on orientation change