Fix not all transactions are logged

Some transactions were considered equal where in fact they were not. Fix
in this version.