Fixes in findNotes function