Fixed determinant, cache it when I calculate it now.