fixed array shallow copy bug