ScalarMatrixRows and ScalarMatrixColumns sets the wrong size