fixed GetHubDistance Point by reference