fix for phantomjs