fix sofia transaction leak