Fixed progress bar bug