Fix bugs in loading log entries.