fix for progressbar