Fix a bug that NameServer returns empty locations.