Fix bug of showing < 100% when finished.