fixed error in host.js