fixing bug with number of notes