fixed array turning into object bug