No family is perfect. Some strange limbs grow on every family tree. You never will perfect your family, but you can learn to have mercy on them. Good parenting pays off. Know when to take responsibility.
Every parent has positive and negative influences on their children.
Cut yourself some slack. Have mercy on yourself and your kids. You are not the ultimate cause of every sin your children commit or of every dumb decision they ever make. Your children have a God-given, inalienable, theological right to their own sins. Freedom from the need to be perfect.