fixed get_distance() round bug