fixed the counting of the members by membership status