Logout issue correction