zhī​guò​gǎi​guò

to correct one's mistakes