fixed deleting a note issue