fixed nil pointer exception on node.GetEndpoint