Only fix duplicate IDs when generating.