FIxed a problem in array function wrapper in matrix structure