distance() fixes