Issue with indexing in MxMatrix