bugfix on progressbar