hidden percent and max information in ProgressBar sample fixes #301

Thought this was the easiest way to fix #301. Tell me what you think.
Also obviously even if this is working I'm still interested in a possible root cause an in particular why this value is NaN when change handler is called.