The problem is that your brain can't tell the difference between bad and good habits, and so if you have a bad one, it's always lurking there, waiting for the right cues and rewards.
Charles DuhiggWhat we know from lab studies is that it's never too late to break a habit. Habits are malleable throughout your entire life. But we also know that the best way to change a habit is to understand its structure - that once you tell people about the cue and the reward and you force them to recognize what those factors are in a behavior, it becomes much, much easier to change.
Charles Duhigg