diff --git a/lib/payment.js b/lib/payment.js
index <HASH>..<HASH> 100644
--- a/lib/payment.js
+++ b/lib/payment.js
@@ -146,7 +146,7 @@ function txToPayment(tx, opts) {
 
     // Advanced options
     invoice_id: tx.InvoiceID,
-    paths: tx.paths || '',
+    paths: tx.paths || [],
     flag_partial_payment: (tx.Flags & 0x00010000 ? true : false),
     flag_no_direct_ripple: (tx.Flags & 0x00020000 ? true : false),
 
diff --git a/lib/tx.js b/lib/tx.js
index <HASH>..<HASH> 100644
--- a/lib/tx.js
+++ b/lib/tx.js
@@ -17,13 +17,13 @@ module.exports.getTx = function(remote, tx_hash, callback) {
       }
 
       // Get container ledger to find close_time
-      remote.requestLedger(tx.inLedger, function(err, ledger){
+      remote.requestLedger(tx.inLedger, function(err, res){
         if (err) {
           callback(err);
           return;
         }
 
-        tx.close_time_unix = ripple.utils.toTimestamp(ledger.close_time);
+        tx.close_time_unix = ripple.utils.toTimestamp(res.ledger.close_time);
 
         callback(null, tx);
[FIX] Fixed timestamp bug