Fixed bugs for notesView
d