fixed a bug that progress bar will excessed 100%