fix output error in logout