Progress problem

Fixes a problem, when setting up initial progress greater than max progress.
E.g. when using `setProgress(view, 200, 300)`, but max progress wasn't changed before and is 100, as a result we get progress 100 of 300.