Fix PhantomJS prerendering