fix js error refresh progress bar