agent log bug fix