Fix incorrect config list when there are duplicate names.