Fix case with aliases where name would not be set.