make progress bar more resilient