Fix progress bar problem when finish task.