Fixed log missing the last entry.