Fix detect-minions.