fixed the phantomjs error