Auto regen of duplicate task IDs