Fixing the lingering progress bar problem