Fix bug when finished.