Work around bug in progressbar