Fix log stuff