Fixed progress dialog errors.