Fixed bug in ProgressBar, which caused test to fail