Fix unpack error in get_secondaries