logout log bug fix