It's most likely your dog's tail hitting the door when you say "good dog."