A common mistake that many pet owners make when aiding their dog in panic or anxiety is to comfort them. While this may seem like the best solution, it is actually doing more harm than you might think. Most dogs will take this action as a reward, and it will continue to encourage their unfavorable behavior. Instead of comforting them, encourage them to act calmly.
Rehabilitation begins by having your dog know what is expected of him. You and other members of your family are the pack leaders, and you need to be recognized as such, not as dictators, but as leaders. For example, if your dog comes up to you and nudges your hand, or slaps you with his paw. You think this is cute and he is petted. This becomes a habit, and now your dog thinks “I am in control and I can tell you what to do.” Then, when he cannot carry it out, he becomes stressed.