fix setProgress restart issue