Fix progress bar bugs