Make sure partitions are only added once.