Assign id as name when all else fails

ping @vieux