Fixed bugs in LogReader