Matrix determinant fix.