Fix no item bug in the binary search service