progress bar drawing correct