duplicated ID bug fixed