fix bug in deleting notes
Merge pull request #1 from wmahan/master

fix bug in deleting notes