fixed error in search bar populating