fix neighbored walls connecting to everyhing

closes #5232