Fixed a bug in NoteLineCount... not seriously... (courtesy of http://whatthecommit.com/)