fixing the bug found in the progress bar widget referneced by issue #425...

... with suggested code change