fixed log print