Improve names lookup.
Do not choose name from aliases when more than one name is found.