fix duplication when generated ID is "ext-gen" prefixed