fixing the search provider - undefined variable $fileData