Layered Grid Graph creates path through unwalkable terrain

I am using a layered grid graph and although it finds terrain to be unwalkable (see third screenshot) it is still pathing through that terrain (see first and second screenshots)
Image 1

Hi

I suspect that you haven’t marked that box as an obstacle (see collision testing mask). What happens is that it will generate nodes on the whole terrain (even inside the box) and since the box is not detected as an obstacle it finds it perfectly ok to go through its walls.