fix for the fix for phantomjs