fix phantomjs bind undefine