small GetDistance fix