Loop bug after relogin fixed.