Fix binary search.