- prevent underflow of logdet