The bug is shown in the pic below. When an outpost gets incorporated into a city, it stops listing its "upgrades" and instead they are listed in the city improvements. Thus, when you click to upgrade the outpost, the improvements you already made can be selected again.
