Fixed bug where matrix m-dimension is off by 1.
Checkpoint