Mend the fold after a sheep is lost
During the Warring States Period (475-221 BC)， the State of Chu not very powerful. The king and the important court officials were dissolute and incompetent. They indulged in luxury and excessive pleasure all the time. Zhuang Xin, one of the ministers foresaw that the country was in danger. One day he remonstrated with the king: "Your Majesty, wherever you go, you're always surrounded by people who flatter you with what you like. They try everything to make you happy so that you forgot to tend to state affairs. If you go on like this, no doubt, the country will perish sooner or later."
The King of Chu flew into a rage. "How dare you! You even use such vicious words to curse my country and mean to arouse resentment among the people!" Zhuang Xin explained, "I dare not curse the State of Chu. But I really have a premonition that Chu is facing great danger." Seeing that the king is especially fond of those corrupt officials and trust them in everything, the minister thought Chu is bound to extinct. So he asked the king to let him leave Chu. He wanted to go to the State of Zhao and stay there for a while.
The king gave him the leave.
Five months later, the King of Qin sent his troops to invade Chu and occupied a large tract of its territory. The King of Chu himself went into exile. Now, the king remembered Zhuang Xin's words. He sent his men to fetch him. When the king saw Zhuang Xin again, he asked him, "What can I do now?"
Zhuang Xin replied, "It's not too late if you mend the sheepfold when you find a sheep is missing." He then made some good suggestions to rehabilitate the state and recover the lost land. The king was very much pleased.
The idiom "Mend the fold after a sheep is lost" has developed from Zhuang Xin's answer to the king.
We still use this metaphor to advise someone that even when he has made a mistake and suffered losses, he can still remedy it by drawing lessons from the mistake.
楚王大怒："大胆！你居然用这样恶毒的话来诅咒我的国家，蓄意挑起人民的不满！" 庄辛解释说："我不敢诅咒楚国，但我可以预言楚国正面临着巨大的危险。" 庄辛见楚王如此宠信那些腐败的大臣，相信楚国必定要亡国。于是他向楚王请求离开楚国，到赵国居住一段时候。