Blendspace not affecting the character blueprint

In my Animation Blueprint preview, the blendspace works fine. Accurate animations regarding the speed, as well as accurate interpolation time.

However, when I set that animation blueprint to an AI character blueprint, the character always does the max speed animation when he walks. Also, it acts as if the interpolation time is zero. He instantly starts the walk animation and instantly switches to the idle animation.

What can be the reason for this kind of error?

for sure your ai and main character are not using the same reference variable for setting the speed

Okay, I fixed it by using the node Vector Length, instead of Vector Length Squared in the anim blueprint event graph.

They are not. I just fixed it by using the node Vector Length, instead of Vector Length Squared in the anim blueprint event graph.