Fixed bug in transaction log