Stop using inv.setMatrix alltogether.  It is broken