Change Is Possible
If one's habits lead to unwanted behaviors, the best way to handle this is to replace the "bad" habit with a "good" habit.
Closely watch your behavior and reward yourself when you successfully demonstrate the desired behavior. If you make a mistake and see the negative behavior, ignore it and move on. Do not reward the negative behavior by making a big deal over it. Good luck - change is possible.