Playing Montage makes State Machine get stuck

For some reason whenever an animation montage gets played, the state machine in my animation blueprint for my AI gets stuck like this:
image
What am i doing wrong and how could i possibly fix this?

I’ve just found out that this happens only when the montage gets played by the behavior tree.

Fixed the issue by making it so that a custom blackboard task that plays the montage from the actor’s Blueprint, but i still wonder why the State Machine gets locked up when a Montage gets played directly from the Behavior Tree…