fixed a bug and search results appear in console

bug was that all fields not correctly being looked at