fix bug in sign out