lei: bug fix for phantomjs error
Merge pull request #39 from LeiZeng/bugfix-phantom

lei: bug fix for phantomjs error