nearest_in_box was broken