fix bug when no phantomjs