Fixed progressbar drawing