fix log in bug