Fixed incorrect code in LogReader.