Fix weirdness in progressbar