Fix transaction logging