fixed problem where log file binary search reaches end and throws error.