Small fix for numOptionalNotes being calculated incorrectly