Pets Randomly Stop Attacking In Visions

As the title says, was trying a few visions and my pets would just randomly stop attacking mobs in there, while in combat with them

Even mobs they have already attacked for a few seconds, they’d just randomly stop and run back to me and sit there doing nothing