Please don't scold your pup for this behavior. Pups usually
grow out of this habit. You should not greet the dog with an
excited, high pitched voice as it only makes this worse. If you
all are very low key with comings & goings & even ignore him/her
when leaving, it's will help until the pup matures a bit.