Progressbar bug fix.