I fixed the error in the search for bar by name query