Reinitialize more completely the sell mode when doing a transaction.

Hopefully fixes issue #127.