Fix bug in rtree_new_neighbor