Fences, glass panes, iron bars and stairs don't update when set by /fill or /setblock
The bug
The /fill and /setblock commands are broken when used with iron bars, glass panes, stairs and fences. As you can see, iron bars don't attach to nearby blocks, this is the same with fences.