bug fixes in Progressbar.