fix error with uninitialized progress bar