added the id to the wrong element