Pet Defensive Stance not working properly

Pet Defensive Stance Mechanic does not seem to work properly when calling your pet back to you while in combat.

Everything I explain below is with my pet in Defensive Stance.

I send my pet in and then call it back, it will no longer defend me against attackers. I understand that in order for the pet to come back to me it cant defend me from attacks in mid travel, but once the pet reaches me, he should defend me from attackers again not just stand there. Occasionally my pet will keep attacking after i call him back (literally biting stuff that is directly behind him) but after he kills that single enemy he wont target a new one even if it is currently attacking me or him.

I could also understand that if i call him off of an individual enemy he wouldn't defend against that individual enemy anymore, but that is not the case, my pet wont defend against any enemy after that, whether the enemy had been in combat with us previously or not. Even if i use Kill Command my pet will do the Kill Command and then come right back he won't go into basic attacking after Kill Command, I would instead have to use the Pet Attack and then Kill Command (Very Annoying). so in order to prevent this from happening anymore i macro'd my /petattack with /kill command, so no more problems there.

I'm guessing this is from whatever they have in place to prevent the pet from never returning to you due to being attacked, but i think the pet should recognize whether or not it is by it's masters side.

*UPDATE: Seems to be more of a bug than anything else, there will be times when i'll tell my pet to follow me during combat, he will follow but also be attacking things that are directly behind him even though he is not facing in that direction and is following next to me, other times when i tell him to follow while in combat he comes to my side and does nothing else at all.

I've been testing it for the last hour, in PvP and PvE, and same results, I've tried Macro's, I've killed my pet off multiple times, uninstalled all addons and nothing i still get these inconsistencies with whether my pet wants to actually defend or not.

It seems as though my pet doesnt know the difference between, Being at my side vs Following me.

I personally think that there should be another button added for pets called, Recall Pet, So instead of using a base command such as Follow to make my pet come back to me. Recall Pet could make a pet return to you, but continue on with whatever it was doing Defending, Assisting, but with Go To it could automatically revert to Defensive or Assist based on what you had on prior, to clicking Recall Pet. This way my pet won't have to decide between Defending vs Following, or Assisting vs Following.

Follow could be integrated with Defensive and Assist. Instead of how it seems now as if Attack is integrated into Defensive and Assist.

Defending, Assisting, and Staying could all be things done along side Attack, just make it so that when the pet is attacking, it isn't Defending or Assisting, it's just attacking and the pet won't get another command to attack (If it is Defending) unless it reaches your side first and you or your pet are attacked. It wont get another command to Attack (if it is Assisting) until the Hunter attacks something. This way Follow doesn't override Defensive, the pet will always be following as it does.
It's been like that for quite awhile. Bliz changed how the stances worked either at the start of last expansion or even before that, memory failing me for the exact time.

Your pet won't act unless you tell it to. Well in theory anyway, they still sometimes wonder off and attack random mobs at times. Gone are the days where you could go AFK in the open world and you pet would defend you if some random mob came along.
Ok, thanks for the response. But seeing as how the Defensive Stance tooltip states that the pet will attack anything that attacks it or its master means that something isn't functioning properly.

My pet will only seems to defend me out of combat,(and by defend i mean attacking back when attacked) but not if i call him back when i'm in combat, and if that is the case the tooltip should reflect that.