fix error in nearest_in_box_border method