Was getting the inverse of the inverse to get the original matrix. Duh. Fixed.