Fix transaction finalize