Fixed garrydupe and adv dupe 2 sometimes not creating wirelinks

Fixes #461