Fixed progress bar animation bug