That's true but I think irrelevant. People are posting examples of things that used to be bad and have improved. If you want your science fiction framing, just consider the timeline where those things didn't improve, and you have your answer.
Because so many of us didn't interpret the question properly at first, maybe the question could have been written more clearly, and it wasn't and that's okay, but I hope people looking for answers would be willing to do a little bit of logical reasoning.
Patriotism leads to xenophobia, in the medium run with a large population. Xenophobia leads to racism. That's not the same thing as fascism, but fascists are happy enough to take advantage of it.