fix noteCount