When the first thought of the negative behaviour enters your mind, isolate it and "challenge" the thinking process by anything unique: a silly sound that you make, a bizarre word like "ookabooka!" or a pinch to your leg. This may sound strange but it will have the highly important impact of breaking the disempowering thought pattern that is holding you back.