fix issue calculating member_count