Fixed an error where txs weren't properly encoded