Fixed progressbar bug