fix 0mat bug

Fix bug where would fail if not matricies.