you need to add walls and fences to tags for them to connect correctly. You would need to create a dir at the same level as your assets folder called `data` and inside that `tags/blocks/` then add `walls.json` inside which you would add
{
"replace": false,
"values": [
"modid:material_wall"
]
}