Photos app confuses files with same name in different folders

Hi, i have just discovered that the photos app always shows the same image when I click a preview of a file that is present in one folder and with the same name in another folder.
For example i have a quite big music collection and in most of the album folders there is a file cover.jpg. So everytime I klick one of the previews, which are correct btw, i get to view same image of one of the cover.jpg files, I guess the first one.