Adding one more fix for binary search, hopefully this fixes it