#13 Minor bug fixes in the log system.