fixes in log-det sampler