fixed relogin bug