The script that places government buildings for the AI doesn't check if it there is already a government of the appropiate type in place. This is what happened to Persepolis when it rebelled several times, only to be captured again each time by the Seleukids:
It seems that the Seleukids got a duplicate building each time they took the city back.
Bookmarks