Fix error in getAccessibleCommunities()