fix bug: logout failed.