fix add array element by ref