Correction in toMatrixDecomp for 1d operators