Fix the error in the find method that is causing elements to not be found