fix gate relogin bug