亡羊补牢
HSK 7-9to remedy after the fact; better late than never
Explanation
fig. to act belatedly; better late than never; to lock the stable door after the horse has bolted
Examples
失踪后找回了狗
Finding a dog that went missing.
知道错误后再改正
Correcting mistakes after knowing them.