Fix a transaction leak