log_reader bug fix