fixed a potential bug in how arrays are merged