I don't remember exactly how it happened, but I think my culture caused a barbarian city to flip. I had the no city flip option on. Other cities didn't flip like it's supposed to but for this one barbarian city (and possibly more) it flipped.
Could it be a bug?
Could it be a bug?