fix agent log