fix id duplication