fixed a bug in the progress bar where it would end at 99% instead of 100%