Fix for phantomjs