AI Don't Move Correctly

Hi, I’m making a simple ai minion that follow when it find you and the rest of the time is wandering, but some minions although the target location is inside the nav mesh move until they are outside of the navmesh.

The main tree that use the wander behavior is this

The wander funciont is this

and the random point task is this

as you can se the location is inside the nav mesh but they move until the are oustside the nav mesh and then they are blocked