Fix auto relogin.