Fixed dumb async issue with phantomjs.