fix some progressbar bugs