fixing #397 again.
Merge pull request #411 from crawljax/fix397

fix for  #397