亡羊补牢
[wáng yáng bŭ láo]
It translates literally to 'Repairing the Fold After the Sheep Are Lost'. A classic Chinese saying implying remedying mistakes even belatedly can still mitigate damages or prevent further losses though some loss has already occurred.