fixed problem with phantomjs