Fix progressbar initialization