Fixed a bug in NoteLineCount... not seriously...