I forget what the fallacy is called, but basically just because thing X is associated with Y and Y is bad doesn’t make X bad. If a communist leader killed people, it doesn’t necessarily mean communism is the reason he killed them.
In the same vain saying fascism is bad “because Hitler was a fascist” would also be a logical fallacy. Hitler also drank water but that doesn’t mean water is bad.