Fixed some log issues.