diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -3,9 +3,9 @@
 
 var assign = require('object-assign');
 var log = console.log;
-var opts = JSON.parse(phantom.args[0]);
 var page = require('webpage').create();
 var system = require('system');
+var opts = JSON.parse(system.args[1]);
 
 /**
  * Format trace
use `system.args` as `phantom.args` is deprecated