Fixed bug where currently selected note delete errors out