fix a memory leak during find action
fix an error with search within deleted records during find action