Fixed some crashes in _export_tx_detail.
export_tx works.