Fixed double add issue. There should be no problem with 'id' attributes now.