fixed bug with indeterminate progress bar