Fix some log stuff