Hacking around issue with PhantomJS.