Face recognition problem

sir it is showing the same name in every selfie or photo.The name which is stored first acc. to alphabetical order is showing in all the photos.It means it is not recognising the photo.what’s the problem is?