fix the array transfer