Progress dialog fix.