Fixing array dereferencing denpending on underlying config