Fixes #1225
Merge pull request #1244 from silentvick/fix-mat-method

Fixes #1225