Fix ProgressBar bug