fixed problem with duplicate tag names