fixed error in visitor.js