fixed an issues about ordering parameters passed to phantomjs