fix 1x1 matrices issue #31