Matrix constructor bugfix