AIPath flash when checked the constrain inside graph

when AIPath walked into a non-walkable node it would flash back to the previous position. Is it possible that prevent the AiPath from moving if his next position is outside of the graph?

The reason I notice it is that when the AIPath walks into a new node it will remove the fog of war adjacent to this node, but when the AIPath flashes back to the previous node the fog will reappear. so when the AIPath kept trying to walk into the node, the adjacent fog of war became flashing. though I can mitigate the issue by reducing the rate of refreshing fog. but still, if possible, I would like the AiPath not to walk into the non-walkable node in the beginning.