fixed log issues