fixed sign out bug