fixed bug in note.equals