correctl handle empty nodes being returned in the search