fixed the problem that returns one-dimensional data array, not two-dimensional data.