fixed log in bug