Fix initial setProgress

setProgress was not calculating newPercent correctly when called
externaly by the user