Vector3.Distance bug?

I don’t know if it’s a bug of Vector3.Distance but after that a zombie is very very much close to me, he stops to eat me e doesn’t apply to me damage because Vector3.Distance begins to return unusual values…
This is my attack function and it works properly

function AttackPlayer () {
	while (true) {
	
			var distance = Vector3.Distance(transform.position, target.position);
			
			var forward = transform.TransformDirection(Vector3.forward);
			var targetDirection = target.position - transform.position;
			targetDirection.y = 0;

			var angle = Vector3.Angle(targetDirection, forward);

			Debug.Log(""+distance);
			if (distance < eatRange && angle < eatAngle)
				yield StartCoroutine("Eat"); 
			else
				MoveTowards(target.position);
			
			yield;
	}
}

These are the values of the Debug when the zombie is really close to me (they are non sense):

4.545801
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.549632
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.553464
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.557296
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

11.8761
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.572626
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

8.233065
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.584125
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.587958
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.591792
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

8.272026
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.603293
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

8.295405
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.614796
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.61863
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.622465
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

8.334371
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.63397
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

4.637805
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

8.365545
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
$:MoveNext() (at Assets\Scripts\AI.js:44)
 
(Filename: Assets/Scripts/AI.js Line: 44)

If you are using a rigidbody. You most de-activated.

you could always use

var distance: float = (transform.position - target.position).magnitude;
if (distance < eatRange) {

}