> Some members of <group X> did <bad thing Y>. Therefore all members of <group X> are bad.
You missed a second clause there... Some members of <group X> did <bad thing Y>. The remaining members of <group X> have failed to hold those members accountable (and in most cases work to actively cover up their misdeeds). Therefore all members of <group X> are bad.