Fixed bug: aggregation of statistics would fail if there was only a single line in the log file.