Don't think it is working as intended. On my colonized planets, I can build ideology and military improvements only once.
Playing Terran, conquering Drengin planets. If there's a military building present, like Military Academy, I can build another of these on an empty tile. Same if there was an ideology building, I can build my neutral preparedness center many times over on the planet.