fixed MatrixMaker::expandBlocks method.