Fix Error with Progress Dialog