AI controller pending kill error at branch

Hello everyone I am pretty new with AI and I have follow this tutorial [Behavior Tree Quick Start Guide][1]

Everything works fine except when I kill my AI I receive this error in my message log

The error points me to a branch in my AI controller.

Here is my behavior tree:

I know it might be because my AI controller still try to access the actor that was destroyed but I don’t know why.
I have search on the forum for a similar issue but I could find any fix. If someone could help me out it would be awesome.

Use Is Valid macro before the branch.

Hey thx for your awnser sadly its still not working with the Is valide macro still got the error :frowning: