Fix progress bar animation due to browser reflow timing