fixing progress bar to close #2