Bugfix: forgot to reset inverse to NULL when setting a new matrix