If you're using shaders, you might need to add supplementaries:iron_gate to the same area as iron_bars in your shaders block.properties file for them to be shaded the same.