Change bar before completing.

This also avoids freezing at the end without the bar being at 100%.