fixed binary search bug in log