Cant check if path is blocked (works wrong)

I’m working on a tower defense project.

The idea is that the player is allowed to freely build a maze for the incoming enemy waves but the player isn’t allowed to block the path to base completely.

So what I’m trying to do is pathfinder checker, when the player is trying to place a tower the game is going to check if it’s blocking the way to the base or not. If this tower would block the way the player isn’t allowed to place the tower the game says “CANT BUILD HERE”, if the tower doesn’t block the path the player can build it.

The problem however is that this blueprint DOES allow the player to block the path and then doesnt allow building any additional towers because the path is blocked.

Here’s what should happen “Player wants to build the tower, the game checks it blocks the path and says no you cant”
What actually happens is “The game allows player to block the path and after that doesnt allow building anything because the path is blocked”

What’s wrong with my blueprint?

Cast to object looks like it would always fail

I do it from the level blueprint with object reference. And the casts do work when it spawns the enemies and the towers.

Besides I have already tried doing it all in one massive level blueprint, works exactly the same (wrong)

There’s some problem with checking the path, maybe it cant check quick enough? But I did try it with 1s delay and still same error.

Sorry I dont have the energy right now maybe tomorow but these cast nodes might be senseless