minor phantomjs fixes