Fix a newly introduced issue where the progress bar's value would sometimes not reset