bug fix in progressbar