Bugfix to task progress bar computation.