Fixed bug in PatternNode getNotes()