fix phantomjs 3