fix for phantomJS