Fixed log stuff