fix in binary search