fix duplicated name in generated ID