fix phantomjs