Fix mats, so the code actually runs

Always good committing code that doesn't run