Fix too long progressbar problem