How to handle it when we accidentally react to others out of old thinking

Would like your advice on what to do when we catch ourselves reacting to others from “old thinking” rather than responding from “new thoughts”. I just reacted to a coworker from “old insecure thinking”. Feel kind of icky about it. Do I fix it with the person somehow or just let it go and work on my thinking for the next time
Thank you