fix bug after login.