fix progressbar issue