modify some bugs of matrixArrayBase