signed_distance_direction bug fix bug fix