Fix exception in transaction command.