Corrected a bug with progressbar resetting.