Fixed another problem with binary search.