Fixed bug in BasicNoteGenerator