It's OK, don't worry.

Simply, our mind is not ONE. People think so, even 100 years after it was demonstrated that it is actually split into facets. Many persons can exist within one mind. Obviously, the most positive and healthy parts of you are providing a good (or possibly GREAT!) role model for those kids. Other parts obviously still exist and make you do things wrong. But all the good that is in you is doing it's job. Let it work!