fixed a bug where removing a note with id > 9 threw an error