You want your kids to be honest, fair, caring, and thoughtful of others. Right?
There’s truth in the old adage: Kids do what you do, not what you say.
Your children learn ethical values and behaviors by watching you. You want to model humility, honesty, fairness, and so on. Yet you know you cannot be perfect all the time. It is so important that they hear you acknowledge your mistakes and weaknesses and see you work hard to correct them. This is a much more powerful example than you lecturing on ethics.
So when you don’t live up to the model you want your kids to copy, use these are opportunities to talk with them about it. You don’t lose face, you gain their respect. They will follow your example.