LineOfSightTo not working well

Hi guys,
So here is my problem, I used a pawnsensor on my AI to detect the player.
To enable my AI to see the player I used “HasLineOfSightTo” in C++ code.
I tried to make a blueprint to solve the problem using lineOfSightTo node.
The first time the AI sees the player, it works the function returns true.
But if tI move the player to make it be out of the sight radius the function doesn’t return false, it continues returning true, as if the AI still sees the player.

here the player standing out of the sight radius of the AI: return false. That’s ok

here the first time the AI sees the player: return true. That’s ok

here the player returning out of the sight radius of the AI: returns true. That’s not right!!!