Fix repeated id and names

Label behavior was erratic because of this