Fix a problem with the handling of a transaction