fixed logged out client issue