progressbar bugfix