Fix re-login failure