Fix bug in best_neighbor()