Fix bug in a command's triggered relink.