fix stuck progress bar issue