Fixed bug regarding the can't delete the note.