fixed showing progress dialog