Ok so i got a little problem. I am changing my units movement.

Before the player could only click around in the circle to move around. That worked well. But now i am trying to change it all so the player can click outside the circle and the unit will move til it is not outside the area. That worked well for a first run. But it is then stuck.
void IAmMoving()
{
float distFromCent = Vector3.Distance(_currentActiveUnit._agent.nextPosition,_currentActiveUnit._fieldPosition);
float allowedRange = _field.transform.localScale.x;
if(distFromCent>allowedRange)
{
_currentActiveUnit._agent.Stop();
_moving = false;
Debug.Log("Stopping");
}
}
I am trying to check the navmesh agents nextPosition. But that position is outside the circle at all time when it is outside once. Even if i turn the unit so it is facing the new area. So do you guys have any good tips on how i should fix this problem