fixed a bug where a progress value greater than the max would result in ...

...the value of 100 - which if the max is not 100, is wrong!