Fix errors in log.