Fix a bug related to opening notes with the same name