bugfixes in log-det framework