Fixed the problem of reading a transposed array instead of array from lua